package wang.raye.springcloudserver;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Raye on 2018-06-13
 */
@RestController
public class TestCtr {

    @RequestMapping("test")
    public void test(HttpServletRequest request){
        System.out.println(request.getRequestURL());
        System.out.println(request.getRequestURI());
    }
}
